<?php

	class cmd_order extends mdl_order
	{
		function getItemsFieldById($orderId, $aField=array('*'), $row=true)
		{
			$sql = "SELECT ".implode(",", $aField)." FROM sdb_order_items WHERE order_id='{$orderId}'";
			if ($row)
			{
				return $this->db->selectrow($sql);
			}
			else return $this->db->select($sql);
		}
	}

?>